using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ReadyToUseTools
{
    /// <summary>
    /// <para>ServerTool 8</para>
    /// <para></para>
    /// <para></para>
    /// </summary>    
    [DisplayName("ServerTool 8")]
    public class SetupMapArea : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SetupMapArea()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_mapAreaItemId">
        /// <para>Map Area Item ID</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public SetupMapArea(object _mapAreaItemId)
        {
            this._mapAreaItemId = _mapAreaItemId;
        }
        public override string ToolboxName => "Ready To Use Tools";

        public override string ToolName => "ServerTool 8";

        public override string CallName => "agolservices.SetupMapArea";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_mapAreaItemId, _mapLayersToIgnore, _tileServices, _featureServices, _packages];

        /// <summary>
        /// <para>Map Area Item ID</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Map Area Item ID")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _mapAreaItemId { get; set; }


        /// <summary>
        /// <para>Map layers to ignore</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Map layers to ignore")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _mapLayersToIgnore { get; set; } = null;


        /// <summary>
        /// <para>Tile Services</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Tile Services")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _tileServices { get; set; } = null;


        /// <summary>
        /// <para>Feature Services</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Feature Services")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _featureServices { get; set; } = null;


        /// <summary>
        /// <para>Packages</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Packages")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _packages { get; set; }


        public SetupMapArea SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}